/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconIndex: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M825.002667 909.568H193.834667c-37.205333 0-67.498667-30.293333-67.498667-67.456V444.586667a27.648 27.648 0 1 1 55.381333 0v397.482666c0 6.528 5.546667 12.074667 12.117334 12.074667h631.168c6.570667 0 12.117333-5.546667 12.117333-12.074667V444.586667a27.648 27.648 0 1 1 55.381333 0v397.482666c0 37.290667-30.293333 67.456-67.498666 67.456z"
        fill={getIconColor(color, 0, '#333333')}
      />
      <path
        d="M861.098667 459.946667a23.893333 23.893333 0 0 1-16.042667-6.186667l-302.08-274.261333a55.338667 55.338667 0 0 0-74.709333 0l-302.08 274.261333a23.808 23.808 0 1 1-32-35.370667l302.037333-274.218666a103.125333 103.125333 0 0 1 138.837333 0l301.994667 274.218666a23.893333 23.893333 0 0 1-15.957333 41.557334z m-153.514667 195.029333H317.013333a23.808 23.808 0 1 1 0-47.616h390.613334a23.808 23.808 0 1 1 0 47.616z"
        fill={getIconColor(color, 1, '#333333')}
      />
    </svg>
  );
};

IconIndex.defaultProps = {
  size: 22,
};

export default IconIndex;
